package top.lyc829.zzl_android.logic.bean;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author lyc
 * @create 2021-03-13 22:01
 */
public class TeamSimpleBean {


    /**
     * id : 123
     * title : 团队标题
     * imgUrl : http://pic.lyc829.top/index_base_image.jpg
     * describe : 团队介绍
     */

    @SerializedName(value = "id")
    private Integer id;
    @SerializedName(value = "title", alternate = {"name"})
    private String title;
    @SerializedName(value = "imgUrl", alternate = {"avatar_team", "teamAvatar"})
    private String imgUrl;
    @SerializedName(value = "describe", alternate = {"describe_team"})
    private String describe;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @Override
    public String toString() {
        return "TeamSimpleBean{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", describe='" + describe + '\'' +
                '}';
    }

    public List<TeamSimpleBean> getExamples() {
        List<TeamSimpleBean> list = new ArrayList<>();

        for(int i = 0; i < 30; i++) {
            TeamSimpleBean teamSimpleBean=new TeamSimpleBean();
            teamSimpleBean.setId(1);
            teamSimpleBean.setTitle("红色故里实践团");
            teamSimpleBean.setDescribe("在参观过程中，我们深深地感受到了当地人民的善良、质朴无华、不怕牺牲的精神，他....");
            teamSimpleBean.setImgUrl("https://www.cueb.edu.cn/pub/xww2013/images/content/2017-09/20170922152622255213.jpg");
            list.add(teamSimpleBean);

        }

        return list;

    }

}
